package com.yang.mapper;

import com.yang.bean.MarketCoupon;
import com.yang.bean.MarketCouponExample;

import java.util.List;

import com.yang.bean.MarketCouponUser;
import com.yang.bean.szy.MarketCouponBO;
import com.yang.bean.szy.MarketCouponUpdateBO;
import org.apache.ibatis.annotations.Param;

public interface MarketCouponMapper {
    long countByExample(MarketCouponExample example);

    int deleteByExample(MarketCouponExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketCouponBO record);

    int insertSelective(MarketCoupon record);

    List<MarketCoupon> selectByExample(MarketCouponExample example);

    MarketCoupon selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketCoupon record, @Param("example") MarketCouponExample example);

    int updateByExample(@Param("record") MarketCoupon record, @Param("example") MarketCouponExample example);

    int updateByPrimaryKeySelective(MarketCoupon record);

    int updateByPrimaryKey(MarketCoupon record);

    //待测试
    void insertMyCoupon(MarketCouponUser marketCouponUser);

    MarketCoupon selectByCodeKey(String code);

    void insertMyCoupons(MarketCouponUser marketCouponUser);

    int selectByUserIdToCouponId(Integer id);
}